<template>
  <div class="news">
    <header>
        <van-icon name="arrow-left" @click="handleBack()" size="25"/>
        <span>消息</span>
    </header>
    <div class="img-t">
      <van-grid :border="false" :column-num="4">
        <van-grid-item class="imgbox">
          <van-image
            src="https://cimg.axureshop.com/28/d0/93/28d0933e0c9f40ce99dc79bdae082541/images/消息/u3800.png"
          />
          <van-image class="img"
            src="https://cimg.axureshop.com/28/d0/93/28d0933e0c9f40ce99dc79bdae082541/images/消息/u3801.png"
          />
          <van-grid-item text="交易物流" />
        </van-grid-item>
        <van-grid-item>
          <van-image  
            src="https://cimg.axureshop.com/28/d0/93/28d0933e0c9f40ce99dc79bdae082541/images/消息/u3804.png"
          />
          <van-image class="img" style="width:20px;height:17px"
            src="https://cimg.axureshop.com/28/d0/93/28d0933e0c9f40ce99dc79bdae082541/images/消息/u3806.png"
          />
          <van-grid-item text="账户通知" />
        </van-grid-item>
        <van-grid-item>
          <van-image 
            src="https://cimg.axureshop.com/28/d0/93/28d0933e0c9f40ce99dc79bdae082541/images/消息/u3808.png"
          />
          <van-image class="img" style="width:21px;height:20px"
            src="https://cimg.axureshop.com/28/d0/93/28d0933e0c9f40ce99dc79bdae082541/images/消息/u3810.png"
          />
          <van-grid-item text="优惠促销" />
        </van-grid-item>
        <van-grid-item>
          <van-image
            src="https://cimg.axureshop.com/28/d0/93/28d0933e0c9f40ce99dc79bdae082541/images/消息/u3812.png"
          />
          <van-image class="img" style="width:15px;height:19px"
            src="https://cimg.axureshop.com/28/d0/93/28d0933e0c9f40ce99dc79bdae082541/images/消息/u3814.png"
          />
          <van-grid-item text="服务通知" />
        </van-grid-item>
      </van-grid>    
      <div class="msg">
        <div>
          <van-card
            desc="海鲜全场满110减20"
            title="优惠促销"
            thumb="https://cimg.axureshop.com/28/d0/93/28d0933e0c9f40ce99dc79bdae082541/images/消息/u3817.png"
            class="van-card"
          />
          <span>16:53</span>
        </div>
        <div class="msg">
          <van-card
            desc="海鲜全场满110减20"
            title="优惠促销"
            thumb="https://cimg.axureshop.com/28/d0/93/28d0933e0c9f40ce99dc79bdae082541/images/消息/u3817.png"
            class="van-card"
          />
          <span>16:53</span>
        </div>
        <div class="msg">
          <van-card
            desc="海鲜全场满110减20"
            title="优惠促销"
            thumb="https://cimg.axureshop.com/28/d0/93/28d0933e0c9f40ce99dc79bdae082541/images/消息/u3817.png"
            class="van-card"
          />
          <span>16:53</span>
        </div>
        <div class="msg">
          <van-card
            desc="海鲜全场满110减20"
            title="优惠促销"
            thumb="https://cimg.axureshop.com/28/d0/93/28d0933e0c9f40ce99dc79bdae082541/images/消息/u3817.png"
            class="van-card"
          />
          <span>16:53</span>
        </div>
      </div>
    </div>

  </div>
</template>

<script>
export default {
  name: 'news',
  methods: {
      handleBack() {
        this.$router.back()
      },
    },
}
</script>

<style lang="less" scoped>
    header{
      height: 44px;
      font-size: 16px;
      line-height: 44px;
      display: flex;
      justify-content: left;
      align-items: center;
      padding: 5px;
      border-bottom: 1px solid rgba(242, 242, 242);
    }

    .imgbox{
      position: relative;
    }
    .img{
      position: absolute;
      top: 34px;
      left: 36px;
      width: 25px;
      height: 18px;
    }
    .img-t{
      background-color: rgba(242, 242, 242, 1);
      padding: 10px;
      height: 592px;
    }

    .van-card{
      --van-card-thumb-size:48px;
      height:90px;
      display: flex;      
      align-items: center;
      --van-card-background-color:white;
      border-bottom: 1px solid  rgba(242, 242, 242, 1);
    }

    .msg{
      position: relative;
      margin-top: 10px;
    }
    .msg span{
      position: absolute;
      top: 30px;
      font-size: 14px;
      color: #666;
      right: 40px;
    }
</style>
